<?php
	
	//include("Xuly/DataProvider.php");
	//include ("../Data/LoaiSanPham.php");
	
	class xlLoaiSanPham{
		
		public static function GetData()
		{
			$LSPList="";
			$dsLSP=DataProvider::ExecuteQuery("select * from loaisanpham where BIXOA=0");
			while($row = mysql_fetch_array($dsLSP,MYSQL_ASSOC))
			{
				$MaLSP=$row["MALSP"];
				$TenLSP=$row["TENLSP"];
				$MaHSX=$row["MAHSX"];
				$BiXoa=$row["BIXOA"];
				$LSP= new LoaiSanPham($MaLSP,$TenLSP,$MaHSX,$BiXoa);
				$LSPList.add($LSP);
			}
			return $LSPList;
		}
	}
?>
